<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>判断偶数与否</title>
	<script type="text/javascript">
	var n1=prompt("请输入判断数字");
    var n2=n1%2;
	if(n2==0){
		console.log("偶数");
	}
	else{
		console.log("非偶数");
	}
</script>
</head>
<body>
	
</body>
</html>